package pt.inescid.components.policyengine.heimdall.contact;

import java.util.Vector;

import pt.inescid.components.policyengine.heimdall.base.User;
import pt.inescid.components.policyengine.heimdall.pdp.base.ModelInstance;

public class EvaluationFeedback {
	
    private static Vector evaluations = null;

	/* ===========================================================
	 ==============================================================
	 =============                    =============================
	 ============= constructor =====================
	 =============                    =============================
	 ==============================================================
	 =========================================================== */
	public EvaluationFeedback() {
		evaluations = new Vector();
	}

	/* ===========================================================
	 ==============================================================
	 =============                    =============================
	 ============= getAllRecords =====================
	 =============                    =============================
	 ==============================================================
	 =========================================================== */
	public static Vector getAllRecords(User currentUser, 
			String modelTag) {
	
		Vector relevantEvaluations = new Vector();
		
		ModelInstance currentEvaluation = null;
		for (int i = 0; i < evaluations.size(); i++) {
			currentEvaluation = (ModelInstance)
			evaluations.elementAt(i);
			
			if (currentEvaluation.getUserInfo().getId() == 
				currentUser.getId() &&
				currentEvaluation.getDefinition().getTag().equals(
						modelTag)) {
				
//				return (currentEvaluation.get)
			}
		}
		return (null);
	}

}; // EvaluationFeedback
